cc = g++
LDFLAGS += -L/usr/local/lib
LIBS += -lportaudio
CPPFLAGS += -I/usr/local/include

all        : record playback deviceinfo

record     : record.cpp
	$(cc) -o record record.cpp $(CPPFLAGS) $(LDFLAGS) $(LIBS)

playback   : playback.cpp
	$(cc) -o playback playback.cpp $(CPPFLAGS) $(LDFLAGS) $(LIBS)

deviceinfo : deviceinfo.cpp
	$(cc) -o deviceinfo deviceinfo.cpp $(CPPFLAGS) $(LDFLAGS) $(LIBS)

clean    : 
	-rm record playback deviceinfo